<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http：//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <include file="Pub:head" />
</head>
<body>



<div class="box1">
    <fieldset style="border-color:#999999;">
        <legend>我的任务</legend>
        <table class="tableStyle" >
            <tr>
                <th>任务名</th>
                <th>指派给</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
            <volist name="list" id="vo">
                <tr>
                <td> <a href="__URL__/taskcontent/id/{$vo['id']}"> {$vo['name']}</a> </td>
                <td>{$emp[$vo['taker']]['name']}</td>
                <td>{$vo['createtime']}</td>
                <td>
                    <?php
                switch($vo['status'])
                {
                    case TASK_TAKED:
                        $url=U('create',array('id'=>$vo['id']));
                            echo "<a href='$url'>创建子任务</a>";
                            break;
                        case TASK_AVL:
                            echo ' <a href="__URL__/taskcontent/id/'. $vo['id'] .'">领取</a>';
                            break;
                  }
                    $url=U('task/taskfinish',array('id'=>$vo['id']));
                    echo "/<a href='$url'>完成</a>";
                    ?>

                </td>
                </tr>
            </volist>


        </table>
    </fieldset>
</div>

</body>
</html>